package demo2;

public class MyArray<T> {
    public Object[] objects=new Object[10];

    public T getObjects(int pos) {
        return (T)this.objects[pos];
    }

    public void setObjects(int pos,T val) {
        this.objects[pos]=val;
    }
}
